package org.cli.admin.command;


public abstract class AbstractCommand implements ICommand {	

	protected String commandName;
	protected String[] aliases;
	
	public AbstractCommand() {
		commandName = getClass().getAnnotation(Command.class).name();
		aliases = getClass().getAnnotation(Command.class).aliases();
	}
	
	public abstract void execute();	

	@Override
	public String getCommandName() {				
		return commandName;
	}

	@Override
	public String[] getAliases() {		
		return aliases;
	}

}
